package yc.bluetooth.voicecontrol;

public class MyJni {

    static {
        System.loadLibrary("MyJni");
    }

    public static native int addMethod(int num1,int num2);

    public static native int add(int a,int b);

    public static native String readFile(String path);

    public static native int writeText(String srcPath,String message);

    public static native void inputAudio(byte[] bytes,int length);

    //初始化解码器  注意：只给path传参，prePath给值null
    public static native int initDecode(String path,String prePath);

    public static native int encodeResult(String path,String copyPath);

    public static native int decodeResult(String path,String copyPath);

    public static native byte[] decodeByByte(byte[] bytes);

    //ADPCM解码
    public static native byte[] decodeByByteM1(byte[] bytes);

    //完成解码
    public static native int finishDecode();
}
